<!--
 * @Description: 系统设置
 * @Hash: /settings
 * @Date: 2021-04-15 11:42:50 +0800
 * @Author: JackChou
 * @LastEditTime: 2021-04-15 12:00:44 +0800
 * @LastEditors: JackChou
-->
<template>
  <div>
    <h2>路由参数id：{{ id }}</h2>
  </div>
</template>
<script>
import { ref, reactive, watch, computed } from 'vue'
import { useRoute } from 'vue-router'
export default {
  name: 'index',
  components: {},
  setup(props, { emit, attrs, slots }) {
    const route = useRoute()
    const id = ref(route.query.id)
    return { id }
  },
}
</script>
<style scoped lang="scss"></style>
